package com.jhd.jiangxi.activity.scan;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.jhd.jiangxi.R;
import com.jhd.jiangxi.activity.main.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class DetailActivity extends BaseActivity {

    @BindView(R.id.btnBack)
    ImageButton btnBack;
    @BindView(R.id.tvHeaderUserName)
    TextView tvHeaderUserName;
    @BindView(R.id.rvStorage)
    RecyclerView rvStorage;
    private DetailAdapter adapter;
    @BindView(R.id.lin_number)
    LinearLayout lin_number;
    @BindView(R.id.tv_total)
    TextView tv_total;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail);
        String isOut=getIntent().getStringExtra("isOut");
        ButterKnife.bind(this);
        lin_number.setVisibility(View.VISIBLE);
        initHeader3("汇总明细");
        LinearLayoutManager layoutManager = new LinearLayoutManager(this);
        rvStorage.setLayoutManager(layoutManager);
        showDetail(rvStorage,tv_total,isOut);

    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        piatsShows.clear();
    }
}